package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/tuokeActivity/controller"
	"gowork/tuokeActivity/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	tac := new(controller.TuokeActivityController)
	app.Post("/sharedOrders", tac.SharedOrders)
	app.Post("/eventPurchase", tac.EventPurchase)
	app.Post("/participationActivity", tac.ParticipationActivity)
	app.Post("/queryActivity", tac.QueryActivity)
	app.Post("/exchangePrizes", tac.ExchangePrizes)

	app.Listen(6184)
}
